cmake_minimum_required(VERSION 3.10)

find_package(Boost REQUIRED COMPONENTS program_options date_time system)

include_directories(${Boost_INCLUDE_DIRS})
include_directories(inc)

link_directories(${LIBRARY_OUTPUT_PATH})

aux_source_directory(src SRC)

add_executable(cantool ${SRC})

DB_SELECT(cantool)

target_link_libraries(cantool osprotocol protocol osio oscom osascom scada dmsys oslog osmsg options dmos osdb string misc env tinyxml json ${Boost_LIBRARIES})

install(TARGETS cantool RUNTIME)